﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Eacademy.Library.Validations;

namespace Eacademy.Domain.Models
{
    public class PasswordViewModel
    {
        [Required(ErrorMessage = "Please enter a password")]
        [DataType(DataType.Password)]
        [ValidatePasswordLength]

        public string Password { get; set; }
        [Required(ErrorMessage = "Retype your password")]
        [DisplayName("Confirm Password")]
        [DataType(DataType.Password)]
        [MustMatchProperty("Password", ErrorMessage = "The password and confirmation password does not match.")]
        public string ConfirmPassword { get; set; }
        
        public string PasswordKey { get; set; }
        public string Username { get; set; }

        public int StudentId { get; set; }
        public int MentorId { get; set; }
    }
}